home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / video / zapem-0.000 / zapem-0 / zapem / control.cc < prev    next >
C/C++ Source or Header  |  1995-06-06  |  609b  |  55 lines

  1. /*    Copyright Alex Hornby 1994/1995. All rights reserved.
  2.      See file README for details
  3. */
  4.  
  5. #include "control.h"
  6.  
  7. Control::Control()
  8. {
  9.     for(int i=0;i<=FIRE4;i++)
  10.         last[i]=false;
  11. }
  12.  
  13. Control::Control(const Control &c)
  14. {
  15.     for(int i=0;i<=FIRE4;i++)
  16.         last[i]=false;
  17.     copy(c);
  18. }
  19.  
  20. Control::~Control()
  21. {
  22. }
  23.  
  24. Control&
  25. Control::operator=(const Control &c)
  26. {
  27.     copy(c);
  28.     return *this;
  29. }
  30.  
  31. bool
  32. Control::test (action a)
  33. {
  34.     return last[a];
  35. }
  36.  
  37. void
  38. Control::copy(const Control& c)
  39. {
  40.     for(int i=0;i<=FIRE4;i++)
  41.         last[i]=c.last[i];
  42. }
  43.  
  44. bool
  45. Control::getRaw(void)
  46. {
  47.     return raw;
  48. }
  49.  
  50. bool
  51. Control::getOkay(void)
  52. {
  53.     return okay;
  54. }
  55.